package com.health.tablebean.webservice;

import android.content.Context;

import com.health.viewscontrols.NovaApplication;
import com.health.db.FDbManager;
import com.health.tablebean.GRAVIDA_FIRSTFOLLOWUP;
import com.health.tablebean.GRAVIDA_PRE_ASSISTCHECK;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * 第一次产前随访
 * Created by Administrator on 2018/2/23 0023.
 */

public class PrenatalFirstVisit {

    private String abdomenCircumference;//腹部周长的测量值，计量单位为cm
    private String abo;//ABO血型代码，DM01-12_1 A，DM01-12_2 B，DM01-12_3 O，DM01-12_4 AB，DM01-12_5 不详
    private String abortion;//自然流产
    private String accompaniment;//附件异常标志，DM01-40_1 未见异常，DM01-40_2 异常
    private String accompanimentDesc;//附件异常描述
    private String alb;//白蛋白浓度（g/L)
    private String alt;//血淸谷丙转氨酶值（U/L)
    private String antCardid;//产前随访记录表单编号
    private String antiHbCore;//乙型肝炎病毒核心抗体检测结果代码，DM06-11_1 +，DM06-11_2 -
    private String antiHbSurface;//乙型肝炎病毒表面抗原检测结果代码，DM06-11_1 +，DM06-11_2 -
    private String antiHbe;//乙型肝炎病毒e抗体检测结果代码，DM06-11_1 +，DM06-11_2 -
    private String antiHiv;//HIV抗体检测结果代码，DM06-8_0 阴性，DM06-8_1 阳性
    private String antigenHbe;//乙型肝炎病毒e抗原检测结果代码，DM06-11_1 +，DM06-11_2 -
    private String antigenHbeSurface;//乙型肝炎病毒表面抗体检测结果代码，DM06-11_1 +，DM06-11_1 -
    private String ast;//血淸谷草转氨酶值（U/L)
    private String bloodOther;//血常规其他
    private String bloodPlatelet;//血小板计数值（G/L)
    private String bodyHeight;//身高的测量值，计量单位为cm
    private String bodyMassIndex;//根据体重（kg)除以身高平方（m2)计箅出的指数
    private String bodyWeight;//体重的测量值，计量单位为kg
    private String cervix;//宫颈异常标志，DM01-40_1 未见异常，DM01-40_2 异常
    private String cervixDesc;//宫颈异常描述
    private String cesarean;//剖宫产次数（次）
    private String crea;//血肌酐值(μmol/L)
    private String createorg;//创建机构
    private String creater;//创建人
    private String createtime;//创建时间
    private String cunnus;//外阴异常标志，DM01-40_1 未见异常，DM01-40_2 异常
    private String cunnusDesc;//外阴异常描述
    private String dbp;//舒张压（mm Hg)
    private String deathNo;//死产例数
    private String defectsNo;//出生缺陷儿例数
    private String eutocia;//阴道分娩次数（次）
    private String expectedDate;//预产期
    private String fetusTimes;//产次
    private String gestationWeeks;//孕周
    private String glu;//血糖检测值（mmol/I.)
    private String gravidity;//孕次
    private String gynecologicOperation;//标识育龄妇女既往是否接受过妇科手术/操作，DM01-11_1 无，DM01-11_2 有
    private String gynecologicOperationDesc;//	对育龄妇女既往接受手术/操作详细情况的描述
    private String haematoglobin;//   血红蛋白值（g/L)
    private String heart;//   心脏听诊异常标志,DM01-40_1 未见异常,DM01-40_2 异常
    private String heartDesc;//   心脏听诊异常结果描述
    private String hematuresis;//   血尿素氮检测值（mmol/L)
    private String hemobilirubinValue;//   结合胆红素值（μmol/L)
    private String husbandBirthday;//		丈夫出生日期
    private String husbandName;//		丈夫姓名
    private String husbandTel;//		丈夫电话号码
    private String lastMenstrual;//		末次月经日期
    private String lastMenstrualSign;//		末次月经日期明确标志，DM06-2_2 不详，DM06-2_0 明确
    private String lungs;//		肺部听诊异常标志,DM01-40_1 未见异常，DM01-40_2 异常
    private String lungsDesc;//		肺部听诊异常结果描述
    private String maternalHealthDesc;//		孕产妇健康评估异常结果描述
    private String maternalHealthGuide;//		保健指导，DM06-03_15 生活方式，DM06-03_2 心理，DM06-03_14 营养，DM06-03_4 避免致畸因素和疾病对胚胎的不良影响，DM06-03_5 产前筛查宣传告知，DM06-03_99 其他
    private String maternalHealthOther;//		保健指导 其他
    private String maternalHealthSign;//		孕产妇健康评估异常标志，DM01-40_1 未见异常，DM01-40_2 异常
    private String neonatusDeath;//       新生儿死亡例数
    private String nextVisitDate;//		下次汸视日期
    private String personalid;//		城乡居民健康档案编号
    private String res1;//		标记是否转诊 ，DM01-11_1无，DM01-11_2有
    private String res2;//		既往史，DM01-23_1 无，DM01-23_2 心脏病，DM01-23_3 肾脏疾病，DM01-23_4 肝脏疾病，DM01-23_5 高血压，DM01-23_6 贫血，DM01-23_7 糖尿病，DM01-23_8 其他
    private String res3;//		既往史 其他
    private String res4;//		家族史,DM01-24_4 无，DM01-24_1 遗产性疾病史，DM01-24_2 精神疾病史，DM01-24_3 其他
    private String res5;//		家族史 其他
    private String res6;//		个人史，DM01-25_7 无特殊，DM01-25_1 吸烟，DM01-25_2 饮酒，DM01-25_3 服用药物，DM01-25_4 接触有毒有害物质，DM01-25_5 接触放射线，DM01-25_5 其他
    private String res7;//		个人史 其他
    private String res8;//       人工流产
    private String res9;//		其他
    private String rh;//		Rh血型代码，DM01-13_1 阴性，DM01-13_2 阳性，DM01-13_3 不详
    private String sbp;//       收缩压（mmHg)
    private String stillbirth;//       死胎例数
    private String syphilisSerology;//		梅毒血清学试验结果代码，DM06-7_0 阴性，DM06-7_1 阳性
    private String totalBilirubin;//       总胆红素值μmol/L)
    private String typeBUltrasonic;//		B超检查结果
    private String urineAcetoneValue;//		尿酮体定性检测结果代码
    private String urineGlucoseValue;//		尿糖定性检测结果代码
    private String urineOccultBlood;//		尿潜血检测结果代码
    private String urineProteinValue;//		尿蛋白定性检测结果代码
    private String urineRoutineOther;//		尿常规其他
    private String uterus;//		宫体异常标志
    private String uterusDesc;//		宫体异常描述
    private String vagina;//		阴道异常标志，DM01-40_1 未见异常，DM01-40_2 异常
    private String vaginaDesc;//		阴道异常描述
    private String vaginalFluid;//		阴道分泌物检查结果代码，DM06-01_1 未见异常，DM06-01_2 滴虫，DM06-01_3 假丝酵母菌，DM06-01_9 其他
    private String vaginalFluidCleanliness;//		阴道分泌物淸洁度代码
    private String vaginalFluidOther;//		阴道分泌物其他
    private String visitDate;//		填表日期
    private String visitDoctorName;//		访视医师姓名
    private String visitTimes;//		随访次数， 1 产前第一次随访 2~5 分别表示产前第2次到第5次随访
    private String wbcCount;//       白细胞计数值（G/L)
    private Rollout hdPersonalRollOut;

    public String getAbdomenCircumference() {
        return abdomenCircumference;
    }

    public void setAbdomenCircumference(String abdomenCircumference) {
        this.abdomenCircumference = abdomenCircumference;
    }

    public String getAbo() {
        return abo;
    }

    public void setAbo(String abo) {
        this.abo = abo;
    }

    public String getAbortion() {
        return abortion;
    }

    public void setAbortion(String abortion) {
        this.abortion = abortion;
    }

    public String getAccompaniment() {
        return accompaniment;
    }

    public void setAccompaniment(String accompaniment) {
        this.accompaniment = accompaniment;
    }

    public String getAccompanimentDesc() {
        return accompanimentDesc;
    }

    public void setAccompanimentDesc(String accompanimentDesc) {
        this.accompanimentDesc = accompanimentDesc;
    }

    public String getAlb() {
        return alb;
    }

    public void setAlb(String alb) {
        this.alb = alb;
    }

    public String getAlt() {
        return alt;
    }

    public void setAlt(String alt) {
        this.alt = alt;
    }

    public String getAntCardid() {
        return antCardid;
    }

    public void setAntCardid(String antCardid) {
        this.antCardid = antCardid;
    }

    public String getAntiHbCore() {
        return antiHbCore;
    }

    public void setAntiHbCore(String antiHbCore) {
        this.antiHbCore = antiHbCore;
    }

    public String getAntiHbSurface() {
        return antiHbSurface;
    }

    public void setAntiHbSurface(String antiHbSurface) {
        this.antiHbSurface = antiHbSurface;
    }

    public String getAntiHbe() {
        return antiHbe;
    }

    public void setAntiHbe(String antiHbe) {
        this.antiHbe = antiHbe;
    }

    public String getAntiHiv() {
        return antiHiv;
    }

    public void setAntiHiv(String antiHiv) {
        this.antiHiv = antiHiv;
    }

    public String getAntigenHbe() {
        return antigenHbe;
    }

    public void setAntigenHbe(String antigenHbe) {
        this.antigenHbe = antigenHbe;
    }

    public String getAntigenHbeSurface() {
        return antigenHbeSurface;
    }

    public void setAntigenHbeSurface(String antigenHbeSurface) {
        this.antigenHbeSurface = antigenHbeSurface;
    }

    public String getAst() {
        return ast;
    }

    public void setAst(String ast) {
        this.ast = ast;
    }

    public String getBloodOther() {
        return bloodOther;
    }

    public void setBloodOther(String bloodOther) {
        this.bloodOther = bloodOther;
    }

    public String getBloodPlatelet() {
        return bloodPlatelet;
    }

    public void setBloodPlatelet(String bloodPlatelet) {
        this.bloodPlatelet = bloodPlatelet;
    }

    public String getBodyHeight() {
        return bodyHeight;
    }

    public void setBodyHeight(String bodyHeight) {
        this.bodyHeight = bodyHeight;
    }

    public String getBodyMassIndex() {
        return bodyMassIndex;
    }

    public void setBodyMassIndex(String bodyMassIndex) {
        this.bodyMassIndex = bodyMassIndex;
    }

    public String getBodyWeight() {
        return bodyWeight;
    }

    public void setBodyWeight(String bodyWeight) {
        this.bodyWeight = bodyWeight;
    }

    public String getCervix() {
        return cervix;
    }

    public void setCervix(String cervix) {
        this.cervix = cervix;
    }

    public String getCervixDesc() {
        return cervixDesc;
    }

    public void setCervixDesc(String cervixDesc) {
        this.cervixDesc = cervixDesc;
    }

    public String getCesarean() {
        return cesarean;
    }

    public void setCesarean(String cesarean) {
        this.cesarean = cesarean;
    }

    public String getCrea() {
        return crea;
    }

    public void setCrea(String crea) {
        this.crea = crea;
    }

    public String getCreateorg() {
        return createorg;
    }

    public void setCreateorg(String createorg) {
        this.createorg = createorg;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getCunnus() {
        return cunnus;
    }

    public void setCunnus(String cunnus) {
        this.cunnus = cunnus;
    }

    public String getCunnusDesc() {
        return cunnusDesc;
    }

    public void setCunnusDesc(String cunnusDesc) {
        this.cunnusDesc = cunnusDesc;
    }

    public String getDbp() {
        return dbp;
    }

    public void setDbp(String dbp) {
        this.dbp = dbp;
    }

    public String getDeathNo() {
        return deathNo;
    }

    public void setDeathNo(String deathNo) {
        this.deathNo = deathNo;
    }

    public String getDefectsNo() {
        return defectsNo;
    }

    public void setDefectsNo(String defectsNo) {
        this.defectsNo = defectsNo;
    }

    public String getEutocia() {
        return eutocia;
    }

    public void setEutocia(String eutocia) {
        this.eutocia = eutocia;
    }

    public String getExpectedDate() {
        return expectedDate;
    }

    public void setExpectedDate(String expectedDate) {
        this.expectedDate = expectedDate;
    }

    public String getFetusTimes() {
        return fetusTimes;
    }

    public void setFetusTimes(String fetusTimes) {
        this.fetusTimes = fetusTimes;
    }

    public String getGestationWeeks() {
        return gestationWeeks;
    }

    public void setGestationWeeks(String gestationWeeks) {
        this.gestationWeeks = gestationWeeks;
    }

    public String getGlu() {
        return glu;
    }

    public void setGlu(String glu) {
        this.glu = glu;
    }

    public String getGravidity() {
        return gravidity;
    }

    public void setGravidity(String gravidity) {
        this.gravidity = gravidity;
    }

    public String getGynecologicOperation() {
        return gynecologicOperation;
    }

    public void setGynecologicOperation(String gynecologicOperation) {
        this.gynecologicOperation = gynecologicOperation;
    }

    public String getGynecologicOperationDesc() {
        return gynecologicOperationDesc;
    }

    public void setGynecologicOperationDesc(String gynecologicOperationDesc) {
        this.gynecologicOperationDesc = gynecologicOperationDesc;
    }

    public String getHaematoglobin() {
        return haematoglobin;
    }

    public void setHaematoglobin(String haematoglobin) {
        this.haematoglobin = haematoglobin;
    }

    public String getHeart() {
        return heart;
    }

    public void setHeart(String heart) {
        this.heart = heart;
    }

    public String getHeartDesc() {
        return heartDesc;
    }

    public void setHeartDesc(String heartDesc) {
        this.heartDesc = heartDesc;
    }

    public String getHematuresis() {
        return hematuresis;
    }

    public void setHematuresis(String hematuresis) {
        this.hematuresis = hematuresis;
    }

    public String getHemobilirubinValue() {
        return hemobilirubinValue;
    }

    public void setHemobilirubinValue(String hemobilirubinValue) {
        this.hemobilirubinValue = hemobilirubinValue;
    }

    public String getHusbandBirthday() {
        return husbandBirthday;
    }

    public void setHusbandBirthday(String husbandBirthday) {
        this.husbandBirthday = husbandBirthday;
    }

    public String getHusbandName() {
        return husbandName;
    }

    public void setHusbandName(String husbandName) {
        this.husbandName = husbandName;
    }

    public String getHusbandTel() {
        return husbandTel;
    }

    public void setHusbandTel(String husbandTel) {
        this.husbandTel = husbandTel;
    }

    public String getLastMenstrual() {
        return lastMenstrual;
    }

    public void setLastMenstrual(String lastMenstrual) {
        this.lastMenstrual = lastMenstrual;
    }

    public String getLastMenstrualSign() {
        return lastMenstrualSign;
    }

    public void setLastMenstrualSign(String lastMenstrualSign) {
        this.lastMenstrualSign = lastMenstrualSign;
    }

    public String getLungs() {
        return lungs;
    }

    public void setLungs(String lungs) {
        this.lungs = lungs;
    }

    public String getLungsDesc() {
        return lungsDesc;
    }

    public void setLungsDesc(String lungsDesc) {
        this.lungsDesc = lungsDesc;
    }

    public String getMaternalHealthDesc() {
        return maternalHealthDesc;
    }

    public void setMaternalHealthDesc(String maternalHealthDesc) {
        this.maternalHealthDesc = maternalHealthDesc;
    }

    public String getMaternalHealthGuide() {
        return maternalHealthGuide;
    }

    public void setMaternalHealthGuide(String maternalHealthGuide) {
        this.maternalHealthGuide = maternalHealthGuide;
    }

    public String getMaternalHealthOther() {
        return maternalHealthOther;
    }

    public void setMaternalHealthOther(String maternalHealthOther) {
        this.maternalHealthOther = maternalHealthOther;
    }

    public String getMaternalHealthSign() {
        return maternalHealthSign;
    }

    public void setMaternalHealthSign(String maternalHealthSign) {
        this.maternalHealthSign = maternalHealthSign;
    }

    public String getNeonatusDeath() {
        return neonatusDeath;
    }

    public void setNeonatusDeath(String neonatusDeath) {
        this.neonatusDeath = neonatusDeath;
    }

    public String getNextVisitDate() {
        return nextVisitDate;
    }

    public void setNextVisitDate(String nextVisitDate) {
        this.nextVisitDate = nextVisitDate;
    }

    public String getPersonalid() {
        return personalid;
    }

    public void setPersonalid(String personalid) {
        this.personalid = personalid;
    }

    public String getRes1() {
        return res1;
    }

    public void setRes1(String res1) {
        this.res1 = res1;
    }

    public String getRes2() {
        return res2;
    }

    public void setRes2(String res2) {
        this.res2 = res2;
    }

    public String getRes3() {
        return res3;
    }

    public void setRes3(String res3) {
        this.res3 = res3;
    }

    public String getRes4() {
        return res4;
    }

    public void setRes4(String res4) {
        this.res4 = res4;
    }

    public String getRes5() {
        return res5;
    }

    public void setRes5(String res5) {
        this.res5 = res5;
    }

    public String getRes6() {
        return res6;
    }

    public void setRes6(String res6) {
        this.res6 = res6;
    }

    public String getRes7() {
        return res7;
    }

    public void setRes7(String res7) {
        this.res7 = res7;
    }

    public String getRes8() {
        return res8;
    }

    public void setRes8(String res8) {
        this.res8 = res8;
    }

    public String getRes9() {
        return res9;
    }

    public void setRes9(String res9) {
        this.res9 = res9;
    }

    public String getRh() {
        return rh;
    }

    public void setRh(String rh) {
        this.rh = rh;
    }

    public String getSbp() {
        return sbp;
    }

    public void setSbp(String sbp) {
        this.sbp = sbp;
    }

    public String getStillbirth() {
        return stillbirth;
    }

    public void setStillbirth(String stillbirth) {
        this.stillbirth = stillbirth;
    }

    public String getSyphilisSerology() {
        return syphilisSerology;
    }

    public void setSyphilisSerology(String syphilisSerology) {
        this.syphilisSerology = syphilisSerology;
    }

    public String getTotalBilirubin() {
        return totalBilirubin;
    }

    public void setTotalBilirubin(String totalBilirubin) {
        this.totalBilirubin = totalBilirubin;
    }

    public String getTypeBUltrasonic() {
        return typeBUltrasonic;
    }

    public void setTypeBUltrasonic(String typeBUltrasonic) {
        this.typeBUltrasonic = typeBUltrasonic;
    }

    public String getUrineAcetoneValue() {
        return urineAcetoneValue;
    }

    public void setUrineAcetoneValue(String urineAcetoneValue) {
        this.urineAcetoneValue = urineAcetoneValue;
    }

    public String getUrineGlucoseValue() {
        return urineGlucoseValue;
    }

    public void setUrineGlucoseValue(String urineGlucoseValue) {
        this.urineGlucoseValue = urineGlucoseValue;
    }

    public String getUrineOccultBlood() {
        return urineOccultBlood;
    }

    public void setUrineOccultBlood(String urineOccultBlood) {
        this.urineOccultBlood = urineOccultBlood;
    }

    public String getUrineProteinValue() {
        return urineProteinValue;
    }

    public void setUrineProteinValue(String urineProteinValue) {
        this.urineProteinValue = urineProteinValue;
    }

    public String getUrineRoutineOther() {
        return urineRoutineOther;
    }

    public void setUrineRoutineOther(String urineRoutineOther) {
        this.urineRoutineOther = urineRoutineOther;
    }

    public String getUterus() {
        return uterus;
    }

    public void setUterus(String uterus) {
        this.uterus = uterus;
    }

    public String getUterusDesc() {
        return uterusDesc;
    }

    public void setUterusDesc(String uterusDesc) {
        this.uterusDesc = uterusDesc;
    }

    public String getVagina() {
        return vagina;
    }

    public void setVagina(String vagina) {
        this.vagina = vagina;
    }

    public String getVaginaDesc() {
        return vaginaDesc;
    }

    public void setVaginaDesc(String vaginaDesc) {
        this.vaginaDesc = vaginaDesc;
    }

    public String getVaginalFluid() {
        return vaginalFluid;
    }

    public void setVaginalFluid(String vaginalFluid) {
        this.vaginalFluid = vaginalFluid;
    }

    public String getVaginalFluidCleanliness() {
        return vaginalFluidCleanliness;
    }

    public void setVaginalFluidCleanliness(String vaginalFluidCleanliness) {
        this.vaginalFluidCleanliness = vaginalFluidCleanliness;
    }

    public String getVaginalFluidOther() {
        return vaginalFluidOther;
    }

    public void setVaginalFluidOther(String vaginalFluidOther) {
        this.vaginalFluidOther = vaginalFluidOther;
    }

    public String getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(String visitDate) {
        this.visitDate = visitDate;
    }

    public String getVisitDoctorName() {
        return visitDoctorName;
    }

    public void setVisitDoctorName(String visitDoctorName) {
        this.visitDoctorName = visitDoctorName;
    }

    public String getVisitTimes() {
        return visitTimes;
    }

    public void setVisitTimes(String visitTimes) {
        this.visitTimes = visitTimes;
    }

    public String getWbcCount() {
        return wbcCount;
    }

    public void setWbcCount(String wbcCount) {
        this.wbcCount = wbcCount;
    }

    public Rollout getHdPersonalRollOut() {
        return hdPersonalRollOut;
    }

    public void setHdPersonalRollOut(Rollout hdPersonalRollOut) {
        this.hdPersonalRollOut = hdPersonalRollOut;
    }

    public static List<PrenatalFirstVisit> convertData(Context context){
        List<PrenatalFirstVisit> datas = new ArrayList<>();
        FDbManager fdb = FDbManager.getInstance(context);
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        List<GRAVIDA_FIRSTFOLLOWUP> infos = fdb.findAllByWhere(GRAVIDA_FIRSTFOLLOWUP.class,
                "IS_UPDATE is not 'N'" + " AND CREATER='" + NovaApplication.getJgrno()  + "'");
        if (infos != null && !infos.isEmpty()) {
            PrenatalFirstVisit data = null;
            for (GRAVIDA_FIRSTFOLLOWUP info : infos) {
                data = new PrenatalFirstVisit();
                List<GRAVIDA_PRE_ASSISTCHECK> gpas = fdb
                        .findAllByWhere(GRAVIDA_PRE_ASSISTCHECK.class, "IDCARD = '" + info.getIDCARD() + "'");
                if (gpas.size()>0){
                    GRAVIDA_PRE_ASSISTCHECK gpa = gpas.get(0);
                    data.setAbo(gpa.getBLOODTYPE());//ABO血型代码，DM01-12_1 A，DM01-12_2 B，DM01-12_3 O，DM01-12_4 AB，DM01-12_5 不详
                    data.setAlb(gpa.getBP());//白蛋白浓度（g/L)
                    data.setAlt(gpa.getSGPT());//血淸谷丙转氨酶值（U/L)
                    data.setAntiHbCore(gpa.getHBCAB());//乙型肝炎病毒核心抗体检测结果代码，DM06-11_1 +，DM06-11_2 -
                    data.setAntiHbSurface(gpa.getHBSAG());//乙型肝炎病毒表面抗原检测结果代码，DM06-11_1 +，DM06-11_2 -
                    data.setAntiHbe(gpa.getHBEAB());//乙型肝炎病毒e抗体检测结果代码，DM06-11_1 +，DM06-11_2 -
                    data.setAntiHiv(gpa.getHIV());//HIV抗体检测结果代码，DM06-8_0 阴性，DM06-8_1 阳性
                    data.setAntigenHbe(gpa.getHBEAG());//乙型肝炎病毒e抗原检测结果代码，DM06-11_1 +，DM06-11_2 -
                    data.setAntigenHbeSurface(gpa.getHBSAB());//乙型肝炎病毒表面抗体检测结果代码，DM06-11_1 +，DM06-11_1 -
                    data.setAst(gpa.getGOT());//血淸谷草转氨酶值（U/L)
                    data.setBloodOther(gpa.getBLOOD_OTHER());//血常规其他
                    data.setBloodPlatelet(gpa.getPLT());//血小板计数值（G/L)
                    data.setCrea(gpa.getSCR());//血肌酐值(μmol/L)
                    data.setGlu(gpa.getFPGL());//血糖检测值（mmol/I.)
                    data.setHaematoglobin(gpa.getHB());//   血红蛋白值（g/L)
                    data.setHematuresis(gpa.getBUN());//   血尿素氮检测值（mmol/L)
                    data.setHemobilirubinValue(gpa.getCB());//   结合胆红素值（μmol/L)
                    data.setRh(gpa.getRH());//		Rh血型代码，DM01-13_1 阴性，DM01-13_2 阳性，DM01-13_3 不详
                    data.setSyphilisSerology(gpa.getLUES());//		梅毒血清学试验结果代码，DM06-7_0 阴性，DM06-7_1 阳性
                    data.setTotalBilirubin(gpa.getTBIL());//       总胆红素值μmol/L)
                    data.setTypeBUltrasonic(gpa.getBCHAO());//		B超检查结果
                    data.setUrineAcetoneValue(gpa.getKET());//		尿酮体定性检测结果代码
                    data.setUrineGlucoseValue(gpa.getGLU());//		尿糖定性检测结果代码
                    data.setUrineOccultBlood(gpa.getBLD());//		尿潜血检测结果代码
                    data.setUrineProteinValue(gpa.getPRO());//		尿蛋白定性检测结果代码
                    data.setUrineRoutineOther(gpa.getURINE_OTHERS());//		尿常规其他
                    data.setVaginalFluid(gpa.getVAGINALSECRETIONS());//		阴道分泌物检查结果代码，DM06-01_1 未见异常，DM06-01_2 滴虫，DM06-01_3 假丝酵母菌，DM06-01_9 其他
                    data.setVaginalFluidCleanliness(gpa.getVAGINALCLEAESS());//		阴道分泌物淸洁度代码
                    data.setVaginalFluidOther(gpa.getVAGINALSECRETIONSOTHERS());//		阴道分泌物其他
                    data.setWbcCount(gpa.getWBC());//       白细胞计数值（G/L)
                }
                data.setAbdomenCircumference("");//腹部周长的测量值，计量单位为cm
                data.setAbortion(info.getABORTIONINFO());//自然流产
                data.setAccompaniment(info.getATTACH());//附件异常标志，DM01-40_1 未见异常，DM01-40_2 异常
                data.setAccompanimentDesc(info.getATTACH_EX());//附件异常描述
                data.setAntCardid("");//产前随访记录表单编号
                data.setBodyHeight(info.getHEIGHT());//身高的测量值，计量单位为cm
                data.setBodyMassIndex(info.getBMI());//根据体重（kg)除以身高平方（m2)计箅出的指数
                data.setBodyWeight(info.getWEIGHT());//体重的测量值，计量单位为kg
                data.setCervix(info.getCERVIXUTERI());//宫颈异常标志，DM01-40_1 未见异常，DM01-40_2 异常
                data.setCervixDesc(info.getCERVIXUTERI_EX());//宫颈异常描述
                data.setCesarean(info.getCAESAREANCOUNT());//剖宫产次数（次）
                data.setCreateorg(info.getCREATEORG());//创建机构
                data.setCreater(info.getCREATER());//创建人
                data.setCreatetime(formatter.format(info.getCREATED_DATE()));//创建时间
                data.setCunnus(info.getLUNG());//外阴异常标志，DM01-40_1 未见异常，DM01-40_2 异常
                data.setCunnusDesc(info.getLUNG_EX());//外阴异常描述
                data.setDbp(info.getLBLOODPRESSURE());//舒张压（mm Hg)
                data.setDeathNo(info.getDEADFETUS());//死产例数
                data.setDefectsNo(info.getNEWBORNDEFECT());//出生缺陷儿例数
                data.setEutocia(info.getNATRUALCHILDBIRTHCOUNT());//阴道分娩次数（次）
                data.setExpectedDate(formatter.format(info.getEXPECTEDDUE_DATE()));//预产期
                data.setFetusTimes(info.getFetusTimes());//产次
                data.setGestationWeeks(info.getPREGANCY_WEEKS());//孕周
                data.setGravidity(info.getPREGANCY_COUNT());//孕次
                data.setGynecologicOperation(info.getGYNECOLOGYHISTORY());//标识育龄妇女既往是否接受过妇科手术/操作，DM01-11_1 无，DM01-11_2 有
                data.setGynecologicOperationDesc(info.getGYNECOLOGYHISTORY_EX());//	对育龄妇女既往接受手术/操作详细情况的描述
                data.setHeart(info.getHEART());//   心脏听诊异常标志,DM01-40_1 未见异常,DM01-40_2 异常
                data.setHeartDesc(info.getHEART_EX());//   心脏听诊异常结果描述
                data.setHusbandBirthday(info.getHUSBAND_AGE());//		丈夫出生日期
                data.setHusbandName(info.getHUSBAND_NAME());//		丈夫姓名
                data.setHusbandTel(info.getHUSBAND_PHONE());//		丈夫电话号码
                data.setLastMenstrual(formatter.format(info.getLASTMENSTRUATION_DATE()));//		末次月经日期
                data.setLastMenstrualSign(info.getLASTMENSTRUATION());//		末次月经日期明确标志，DM06-2_2 不详，DM06-2_0 明确
                data.setLungs(info.getLUNG());//		肺部听诊异常标志,DM01-40_1 未见异常，DM01-40_2 异常
                data.setLungsDesc(info.getLUNG_EX());//		肺部听诊异常结果描述
                data.setMaternalHealthDesc(info.getOVERALASSESSMENT_EX());//		孕产妇健康评估异常结果描述
                data.setMaternalHealthGuide(info.getHEALTHZHIDAO());//		保健指导，DM06-03_15 生活方式，DM06-03_2 心理，DM06-03_14 营养，DM06-03_4 避免致畸因素和疾
                data.setMaternalHealthOther(info.getHEALTHZHIDAOOTHERS());//		保健指导 其他
                data.setMaternalHealthSign(info.getOVERALASSESSMENT());//		孕产妇健康评估异常标志，DM01-40_1 未见异常，DM01-40_2 异常
                data.setNeonatusDeath(info.getNEWBORNDEAD());//       新生儿死亡例数
                data.setNextVisitDate(formatter.format(info.getNEXTFOLLOWUP_DATE()));//		下次汸视日期
                data.setPersonalid(info.getARCHIVEID());//		城乡居民健康档案编号
                data.setRes1(info.getREFERRAL());//		标记是否转诊 ，DM01-11_1无，DM01-11_2有
                data.setRes2(info.getCUSTOMERHISTORY());//		既往史，DM01-23_1 无，DM01-23_2 心脏病，DM01-23_3 肾脏疾病，DM01-23_4 肝脏疾病，DM01-23_5 高血压，DM01-23_
                data.setRes3(info.getCUSTOMERHISTORY_EX());//		既往史 其他
                data.setRes4(info.getFAMILYHISTORY());//		家族史,DM01-24_4 无，DM01-24_1 遗产性疾病史，DM01-24_2 精神疾病史，DM01-24_3 其他
                data.setRes5(info.getFAMILYHISTORY_EX());//		家族史 其他
                data.setRes6(info.getPERSONALHISTORY());//		个人史，DM01-25_7 无特殊，DM01-25_1 吸烟，DM01-25_2 饮酒，DM01-25_3 服用药物，DM01-25_4 接触有毒有害物质，DM01
                data.setRes7(info.getPERSONALHISTORY_EX());//		个人史 其他
                data.setRes8(info.getInducedABORTIONINFO());//       人工流产
                data.setRes9("");//		其他
                data.setSbp(info.getLBLOODPRESSURE());//       收缩压（mmHg)
                data.setStillbirth(info.getDEADFETUS());//       死胎例数
                data.setUterus(info.getCERVIXUTERI());//		宫体异常标志
                data.setUterusDesc(info.getCERVIXUTERI_EX());//		宫体异常描述
                data.setVagina(info.getVAGINA());//		阴道异常标志，DM01-40_1 未见异常，DM01-40_2 异常
                data.setVaginaDesc(info.getVAGINA_EX());//		阴道异常描述
                data.setVisitDate(formatter.format(info.getRECORD_DATE()));//		填表日期
                data.setVisitDoctorName(info.getFOLLOWUPDOCTOR());//		访视医师姓名
                data.setVisitTimes("1");//		随访次数， 1 产前第一次随访 2~5 分别表示产前第2次到第5次随访
                Rollout rollout = new Rollout();
                rollout.setHpc(info.getREFERRALREASON());
                rollout.setRollInRegion(info.getREFERRALORG());
                data.setHdPersonalRollOut(rollout);
                datas.add(data);
            }
        }
        return datas;
    }
}
